package com.czz.ucenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czz.ucenter.entity.User;
import com.czz.ucenter.vo.UserVo;

/**
 * @ClassName: UserService
 * @Author Czz
 * @Date 2019/12/11
 * @Time 10:53
 **/
public interface UserService extends IService<User> {
    Boolean register(User user, String code);
    Boolean check(String mobile);
    User login(String username, String password,Boolean teacher);
    UserVo getUserById(String id);
    void cancelAvatarUpload(String avatar);
    void sendVerifyCode(String phone);
    Integer checkCode(String phone,String code);
    void updatePassword(String id,String oldPassword, String newPassword);
    void updateUserById(User user);
}
